package br.com.cefetrn.apoena.view.decorators;

import org.displaytag.exception.DecoratorException;

public class LinkNoticia extends AbstractColumn{

	@Override
	public String decorate(Object obj) throws DecoratorException {
		String link = "";
		Integer e = null;
		System.out.println(obj);
		if (obj != null){
			e = (Integer) obj;
			link = "<a href=\"/APOENA/noticia.action?tipo=BUSCA&botao=buscar&codNoticiaBuscada="+e+"\">Visualizar</a>";
		}
		return link;
	}

}
